package com.example.wanandroid.retrofit

import com.example.wanandroid.entity.article.ArticleData
import com.example.wanandroid.entity.banner.BannerData
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

interface WanAndroidApi {
    @GET("banner/json")
    fun getBannerData(): Call<BannerData>

    @GET("article/list/{page}/json")
    fun getArticleData(@Path("page")page:Int): Call<ArticleData>
}